﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Yun.Interface;
using Yun.Response;
using Yun.Util;

namespace Yun.Marketing.Request
{
    /// <summary>
    /// 修改专题参与的商品的状态
    /// yun.goods.apply.subject.status.update
    /// </summary>
    public class UpdateApplySubjectStatusRequest : ITopRequest<BoolResultResponse>
    {
        public string GetApiName()
        {
            return "yun.goods.apply.subject.status.update";
        }
        /// <summary>
        /// 专题ID
        /// </summary>
        public long SubjectId { get; set; }

        /// <summary>
        /// 专题报名ids，多个用英文逗号隔开
        /// </summary>
        public string Ids { get; set; }

        /// <summary>
        /// 审核状态
        /// </summary>
        public int Status { get; set; }

        public void Validate()
        {
            RequestValidator.ValidateRequired("subjectid", SubjectId);
            RequestValidator.ValidateRequired("ids", Ids);
            RequestValidator.ValidateRequired("status", Status);
        }
        public IDictionary<string, string> GetParameters()
        {
            var parameters = new YunDictionary
            {
                {"subjectid", SubjectId},
                {"ids", Ids},
                {"status", Status}                 
            };
            return parameters;
        }

    }
}
